package com.efast.dmom.aps.entity;

import java.time.LocalDate;

import com.efast.dmom.aps.entity.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;

public class PlanEntity extends BaseEntity {

	private static final long serialVersionUID = -2185228884842297815L;

	// plan_no 计划序列号
	// plan_type 计划类型
	// part_no 成品料号
	// part_desc 成品描述
	// qty 数量
	// so_no 销售订单单号
	// customer 客户
	// Offline_date 交付日期
	// ea extend_attribute
	private String planNo;
	private String planType;
	private String partNo;
	private String partRevision;
	private String partDesc;
	private double qty;
	private String plantCode;
	private String plantAddr;
	private int priority;
	private String salesOrder;
	private String customer;
	private long plantId;
	
	@JsonDeserialize(using = LocalDateDeserializer.class)
	@JsonSerialize(using = LocalDateSerializer.class)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
	private LocalDate offlineDate;
	private String status;
	private String ea0;
	private String ea1;
	private String ea2;
	private String ea3;
	private String ea4;

	public String getPlantAddr() {
		return plantAddr;
	}

	public void setPlantAddr(String plantAddr) {
		this.plantAddr = plantAddr;
	}

	public String getPlanNo() {
		return planNo;
	}

	public void setPlanNo(String planNo) {
		this.planNo = planNo;
	}

	public String getPlantCode() {
		return plantCode;
	}

	public void setPlantCode(String plantCode) {
		this.plantCode = plantCode;
	}

	public String getPlanType() {
		return planType;
	}

	public void setPlanType(String planType) {
		this.planType = planType;
	}

	public String getPartNo() {
		return partNo;
	}

	public void setPartNo(String partNo) {
		this.partNo = partNo;
	}
	
	public String getPartRevision() {
		return partRevision;
	}

	public void setPartRevision(String partRevision) {
		this.partRevision = partRevision;
	}

	public String getPartDesc() {
		return partDesc;
	}

	public void setPartDesc(String partDesc) {
		this.partDesc = partDesc;
	}

	public double getQty() {
		return qty;
	}

	public void setQty(double qty) {
		this.qty = qty;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public String getSalesOrder() {
		return salesOrder;
	}

	public void setSalesOrder(String salesOrder) {
		this.salesOrder = salesOrder;
	}

	public String getCustomer() {
		return customer;
	}

	public void setCustomer(String customer) {
		this.customer = customer;
	}
	
	public long getPlantId() {
		return plantId;
	}

	public void setPlantId(long plantId) {
		this.plantId = plantId;
	}

	public LocalDate getOfflineDate() {
		return offlineDate;
	}

	public void setOfflineDate(LocalDate offlineDate) {
		this.offlineDate = offlineDate;
	}
	
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getEa0() {
		return ea0;
	}

	public void setEa0(String ea0) {
		this.ea0 = ea0;
	}

	public String getEa1() {
		return ea1;
	}

	public void setEa1(String ea1) {
		this.ea1 = ea1;
	}

	public String getEa2() {
		return ea2;
	}

	public void setEa2(String ea2) {
		this.ea2 = ea2;
	}

	public String getEa3() {
		return ea3;
	}

	public void setEa3(String ea3) {
		this.ea3 = ea3;
	}

	public String getEa4() {
		return ea4;
	}

	public void setEa4(String ea4) {
		this.ea4 = ea4;
	}
}
